import fs from 'fs';

function readText(filePath: string) {
    try {
        return fs.readFileSync(filePath, 'utf8');
    } catch (e) {
        console.log('工具库 readText 读取文件失败', filePath);
        return null;
    }
}

export default readText;